package pers.cj.pdos.controller;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ResponseBody;
import pers.cj.pdos.controller.entity.ResponseData;
import pers.cj.pdos.controller.entity.ResponseList;
import pers.cj.pdos.service.IIndustryService;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author chenj
 * @since 2019-11-04
 */
@Controller
@RequestMapping("/industry")
public class IndustryController {

    @Autowired
    private IIndustryService industryService;

    @RequestMapping("getAll")
    @ResponseBody
    public ResponseData getAll(){
        return ResponseData.success(industryService.listAll());
    }
}
